package com.pgm.dao;

import com.pgm.model.UserInfo;
import com.pgm.model.VisitUserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IndexMapper {

    List<UserInfo> getUserList(@Param("deptIds") List<String> deptIds,@Param("inObjectIds")  List<String> inObjectIds,@Param("outObjectIds")  List<String> outObjectIds,@Param("deviceIds")List<String> deviceIdS);

    UserInfo getUserInfoById(String id);

    List<VisitUserInfo> getVisitorsUserInfo(@Param("inObjectIds")  List<String> inObjectIds,@Param("outObjectIds")  List<String> outObjectIds);

    List<VisitUserInfo> getIndexVisitorsUserInfo(@Param("deptIds")List<String> deptIds,@Param("userNoOrUsername") String userNoOrUsername);

    List<UserInfo> getNewVisitorsUserInfo(@Param("PersonNOS")List<String> asList,@Param("inObjectIds")  List<String> inObjectIds,@Param("outObjectIds")  List<String> outObjectIds,@Param("userNoOrUsername") String userNoOrUsername);

    List<UserInfo> getEmployeeUserInfo(@Param("PersonNOS")List<String> asList,@Param("deptIds") List<String> asList1, @Param("inObjectIds")List<String> asList2,@Param("outObjectIds") List<String> asList3,@Param("userNoOrUsername") String userNoOrUsername);

    Integer peopleCounting(@Param("deptIds") List<String> deptIds,@Param("inObjectIds")  List<String> inObjectIds,@Param("outObjectIds")  List<String> outObjectIds,@Param("deviceIds")List<String> deviceIds);
}
